package units;

import game.Costs;
import game.Technology;

public class SiegeRam extends AbstractUnit {
	//*******************************************
	private static final int _healthpoints = 500;
	private static final int _attackMultiple = 1;
	private static final int _attack = 50;
	private static final int _defense = 2;
	private static final int _attackquality = 15;
	private static final int[] _attackRounds = {6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
	private static Costs costSetting = null;	
	private static final int _buildPoints = 300;	
	//*******************************************

	SiegeRam() {
		super(_healthpoints, _attack, _defense, _attackquality, _attackMultiple, _attackRounds, _buildPoints);
		if (costSetting == null){
			costSetting = new Costs();
			costSetting.setLumberCost(200);
			costSetting.setIronCost(100);
			costSetting.setGoldCost(40);
			costSetting.setStoneCost(10);
			}
		this.setCosts(costSetting);
	}

	@Override
	int getAttackBonus() {
		return Technology.getCatapultAttackBonus();
	}

	@Override
	int getDefenseBonus() {
		return Technology.getCatapultDefenseBonus();
	}

	@Override
	int getAttackqualityBonus() {
		return Technology.getCatapultAttackqualityBonus();
	}

	@Override
	int getHealthpointsBonus() {
		return Technology.getCatapultHealthpointsBonus();
	}
}
